﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
	//引入java代码
	//从页面读取name为username的控件内容
	String username=request.getParameter("username");	
	System.out.println("username="+username);
	
	String password=request.getParameter("password");
	System.out.println("password="+password);
	
	if(username.equals("jerry") && password.equals("123")){
		//用户名、密码正确
		
	}else{
		//用户名或者密码错误
		
	}
%>
</body>
</html>